<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="./Public/Home/css/list.css" />
		<script type="text/javascript"src="./Public/uploadify/jquery-1.8.2.min.js"></script>
			
		<script>
			$(function(){
				$('.jia').click(function(){
					taid=$(this).attr("taid");

						$('.a'+taid).parent().parent().slideToggle(100);

					divlen=$('.shou').length;
					
				})
			})
		</script>
	</head>
	<body>
		<!--头部-->

			<!--头部-->
<div id="header">
		<div class="header_auto">
			<div class="header_top">
				<img class="logo" src="./Public/Home/img/logo.jpg"/>
				<div class="header_logins">
					<a href="http://127.0.0.1/PHP/wow1/index.php?m=Home&c=Member&a=login">登录</a>
					<a href="http://127.0.0.1/PHP/wow1/index.php?m=Home&c=Member&a=reg">注册</a>
				</div>
				<div class="shopping_car fr size14">
					<a href="">购物车<span class="ju">0</span>件
					</a>
				</div>
				
			</div>
			<div class="header_bottom">
				<ul class="site_nav siteNav fl">
					<li class="index">
						<a  href="http://127.0.0.1/PHP/wow1/index.php?m=Home&c=Index&a=index" style="display: block;height: 44px;"></a>
					</li>
					<li><a href="http://127.0.0.1/PHP/wow1/index.php?m=Home&c=Category&a=index">市集</a></li>	
				</ul>
				<div class="search">
					<form action="" method="get">
						<input type="text" placeholder="请输入要搜索的关键字" />
						<a href=""></a>
					</form>
				</div>
			</div>
		</div>
</div>	
	<!--头部结束-->


		<!--头部结束-->
		<!--分类-->		
<div class="cateNav">
	<div class="cateNavCount">
		<div class="cateNavCountL">
					<!--顶级分类-->	
			<p style="font-size: 14px;color: #00CCCC;"><?php echo $cateGrandpa['cname']?></p>		
				
					<!--第二级分类-->
			<h2 ><?php echo $cateSon['cname']?></h2>			
		</div>
		
				<!--第三级分类-->
		<ul class="cateNavCountR">
			<?php foreach ($cateGrandson as $v){?>
					<li><a href=""><?php echo $v['cname']?></a></li>
			<?php }?>
		</ul>
	</div>
</div>
<!--分类结束-->

<!--设计列表的商品-->
<div id="shejiGoods">
	<!--筛选导航-->
	<div class="screeningNav">
		<div class="condition">
			<div class="conditionL">
				<ul class="screen">
					<?php foreach ($lastAttr as $n){?>
					<li class="jia" taid=<?php echo $n['taid']?>><?php echo $n['name']?></li>
					<?php }?>
				</ul>
			</div>
			<div class="conditionR">
				<a href="javascript:;" class="hot">最热</a>
				<a href="javascript:;" class="new">最新</a>
			</div>
		</div>
	</div>
	<!--筛选条件-->
	<div class="shaixuan" style="margin:0 auto;width:1100px">
		<?php foreach ($lastAttr as $k=>$v){?>
				<?php
                    $temp = $param;
                    $temp[$k] = 0;
                ?>
		<div	   class="shou" style="display: none;border-bottom:1px solid #e3e3e3;overflow: hidden;">
			<p ><?php echo $v['name']?>：</p>
			<ul>
				<li>
					<a href="<?php echo U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])?>" <?php if($param[$k]==0){?>
                class="bj"
               <?php }?>>全部</a>
				</li>
				<?php foreach ($v['value'] as $value){?>
				<?php
				$temp[$k]=$value['gaid'];			
				 ?>
				<li class="a<?php echo $value['typeattribute_tid']?>" taid=<?php echo $value['typeattribute_tid']?>><a href="<?php echo U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])?>" <?php if($value['gaid']==$param[$k]){?>
                class="bj"
               <?php }?>><?php echo $value['gvalue']?></a></li>
				<?php }?>
			</ul>
		</div>
		<?php }?>
	</div>
	
	
	<div class="GoodsList">
		
		<div style="width:1144px;">
			<?php foreach ($goodsData as $v){?>
				<div class="Goods">
					<a href="<?php echo U('Details/index',array('gid'=>$v['gid']))?>" target="_blank"><img src="<?php echo $v['listimg']?>" alt="" /></a>
					<h3><a href="<?php echo U('Details/index',array('gid'=>$v['gid']))?>" target="_blank"><?php echo $v['gname']?></a></h3>
					<div class="GoodsWarp">
						<div class="overlay"></div>
						<div class="price">￥<?php echo $v['price']?></div>
					</div>
				</div>
			<?php }?>
		</div>
		
		
		
	</div>
</div>

		
<!--设计列表的商品结束-->		


		<!--底部-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>

	</head>
	<body>
	<!--底部-->
<div id="footer">
		<div class="center">
			<p class="footer_top">高端定制上哇噻网</p>
			<p class="copy_info">北京光年创艺信息技术有限公司 WowSai.com Copyright© 2008-2013 [京ICP备10020900][京公网安备11010502026420][京ICP证090011号]</p>
		</div>
</div>
	</body>
</html>
	
		
		
	</body>
</html>
